{extend name="index_base" /}
{block name="seo"}
<title>最近更新 - {$site_config['site_title']}</title>
<meta name="keywords" content="{$site_config['seo_keyword']}">
<meta name="description" content="{$site_config['seo_description']}"> 
{/block}
{block name="css"}
<link rel="stylesheet" href="__HOME__/css/update.css">
{/block}
{block name="body"}
 <article>
	 <!--div class="title searchweb">
         <form onsubmit="return false" id="search">
             <input type="text" name="search" placeholder="输入想搜索的教程">
             <input type="submit" class="iconfont" id="search_btn" value="">
         </form>
     </div-->
<!--	 <div class="count">-->
<!--		 <div class="count-title">-->
<!--			 赞助商广告-->
<!--		 </div>-->
<!--	 </div>-->
	 <div class="indexgg layui-clear">

		 {include file="index/gg"}

	 </div>
	 <div class="content layui-clear">
		 <ul class="left">
			 <li> <a class="hover"><img src="/public/images/lie.png" /> 所有更新 </a> </li>
             {volist name="resourceSites" id="vo"}
			 <li data-id="{$vo.id}"> <a><img src="{$vo.ico}" />{$vo.name}</a> </li>
			 {/volist}
			 </ul>
		 <div class="right">
			 <div class="ulttile layui-clear">
				 <div>来源网站</div>
				 <div>教程标题</div>
				 <div>更新时间</div>
				 <div>围观人数</div>
				 <div>操作</div>
			 </div>
			 <ul class="updatelist"></ul>
			 <div id="page"></div>
		 </div>
	 </div>
 </article>
{/block}
{block name="js"}
<script  id="list" type="text/html">
	{{#layui.each(d.data, function(index, item){}}
	<li class="layui-clear" data-r_id="{{item.id}}">
		<div>{{item.name}}</div>
		<div><a href="{{item.url}}#{$_SERVER['HTTP_HOST']}" target="_blank" class="url add_r" rel="nofollow">{{item.title}}</a></div>
		<div {{#if(isToday(item.updated_at)){}} class="new-time"{{#}}} >{{item.updated_at}}</div>
		<div>{{item.total_view}}</div>
		<div><a href="{{item.url}}#{$_SERVER['HTTP_HOST']}" target="_blank" class="open add_r">浏览</a></div>
	</li>
	{{#})}}
</script>
<script src="__HOME__/js/update.js"></script>
{/block}